/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2016年6月30日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package templetmethod;

/**
 * @Type CatchTemplet
 * @Desc
 * @author boboge
 * @date 2016年6月30日
 * @Version V1.0
 */
public abstract class CatchTemplet {

    private void preCatch() {
        System.out.println("起先要做的准备");
    }

    public abstract void catchContent(String content);

    private void endCatch() {
        System.out.println("抓取结束");
    }

    public void excute(String content) {
        preCatch();
        catchContent(content);
        endCatch();
    }

}
